<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <%@include file="/common/common.jspf" %>
    <script type="text/javascript" src="${ctx}/js/store/order/confirmDelivery.js"></script>
    <style type="text/css">
        .col-sm-3 {
            width: 15%;
            float: left;
        }

        .col-sm-9 {
            width: 85%;
            float: left;
        }
    </style>
</head>
<body>
<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
<form id="form" name="form" class="form-horizontal" method="post" action="${ctx}/store/order/confirmDelivery.shtml">
    <input type="hidden" name="id" value="${order.id}">
    <input type="hidden" name="good_id" value="${order.good_id}">
    <input type="hidden" name="addr_id" value="${order.addr_id}">
    <section class="panel panel-default">
        <div class="panel-body">
            <div class="form-group">
                <label class="col-sm-3 control-label" style="width: 80%;">订单编号</label>
                <div class="col-sm-9">
                    <input type="text" name="code" class="form-control" value="${order.code}" readonly="readonly" style="width: 60%;">
                </div>
            </div>

            <div class="line line-dashed line-lg pull-in"></div>
            <%--<div class="form-group">
                <label class="col-sm-3 control-label" style="width: 80%;">包裹数量(个)</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control"  name="bgcount" style="width: 60%;">
                </div>
            </div>--%>
            <div class="form-group">
                <label class="col-sm-3 control-label" style="width: 80%;">包裹总重量，单位是千克(kg)</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="bgweight" style="width: 60%;">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label" style="width: 80%;">包裹长度，单位厘米(cm)</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="space_x" style="width: 60%;">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label" style="width: 80%;">包裹宽度，单位厘米(cm)</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="space_y" style="width:60%;">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label" style="width: 80%;">包裹高度，单位厘米(cm)</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="space_z" style="width: 60%;">
                </div>
            </div>
            <div class="line line-dashed line-lg pull-in"></div>
            <div class="form-group">
                <label class="col-sm-3 control-label" style="width: 80%;">是否保价</label>
                <div class="col-sm-9">
                    <select name="use_insured" style="width: 60%;">
                        <option value="0">不保价</option>
                        <option value="1">保价</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label" style="width: 80%;">保价金额（元）</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" name="insured_value" style="width: 60%;">
                </div>
            </div>
            <c:if test="${order.good_id==7}">
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">检测报告</label>
                </div>
                <div class="col-sm-9">
                    <input type="file" class="form-control system-upload-field" data-for="reportUrl" placeholder="请上传报告" name="reportUrl" style="width: 60%;">
                    <input type="hidden" name="reportUrl">
                </div>
            </div>
            </c:if>
        </div>
        <footer class="panel-footer text-right bg-light lter">
            <button type="submit" class="btn btn-success btn-s-xs">确认发货</button>
        </footer>
    </section>
</form>
</body>
</html>
